/*
 * @Author: wuyuxin
 * @Date: 2024-07-08 21:34:26
 * @LastEditors: wuyuxin
 * @LastEditTime: 2024-07-11 18:21:19
 * @Description:
 */
import { ref } from 'vue'
import PageContent from '@/components/page-content/page-content.vue'

export default function usePageContent() {
  const contentRef = ref<InstanceType<typeof PageContent>>()

  function handleQueryClick(queryInfo: any) {
    console.log('============??????', queryInfo)
    contentRef.value?.fetchPageListData(queryInfo)
  }

  function handleResetClick() {
    contentRef.value?.fetchPageListData()
  }

  return { contentRef, handleQueryClick, handleResetClick }
}
